<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of load
 *
 * @author sonUIT
 */
class loadpage extends CI_Controller {
    public function __construct() {
        parent::__construct();
    }
    public function load($arraypage,$data){
        //$data = array();
       
        if ($this->session->userdata("is_login") == 1)
        {  $data['tentk'] = $this->session->userdata('tentk');
        $data['maloaitk']=$this->session->userdata('maloaitk');
       // var_dump($data['maloaitk']);
        }
        $this->load->view('header_view', $data);        
        $this->load->view('top-level1_view');
            $this->load->view('main_start_view');           
           foreach ($arraypage as $value) {
               $this->load->view($value,$data);
           }            
            $this->load->view('main_end_view');
            $this->load->view('footer_view');
    }
}

?>
